]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
jhbuild wrapper: Don't crash if we can't start the shell
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 26 Apr 2012 20:17:34 +0000 (16:17 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 27 Apr 2012 19:48:53 +0000 (15:48 -0400)
If start_shell throws an exception for whatever reason, the finally
handler will run before shell has been set, leading to a "referencing
an undefined local variable" error.

src/gnome-shell-jhbuild.in

index 4ad7a02e9ccb2047881885e9922eccba5299bc58..e2c0a745c64683fe118c6857c2c76a54f8370f76 100755 (executable)
@@ -111,6 +111,7 @@ def run_shell():
     if options.verbose:
         print "Starting shell"
 
+    shell = None
     try:
         shell = start_shell()